package com.design.strategy;

import com.design.strategy.service.QuackBehavior;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/8
 * @Description
 * 鸭鸣器
 */
public class DuckCall {

    private QuackBehavior quackBehavior;

    public void setQuackBehavior(QuackBehavior quackBehavior) {
        this.quackBehavior = quackBehavior;
    }
    public void performQuack(){
        quackBehavior.quack();
    }
}
